
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include "user_central_control.h"

#define USER_BUFF_LEN (84)


USER_CENTRAL_CONTROL_STATUS_T user_central_control_status;

static uint8_t payloadbuff[USER_BUFF_LEN];

	
void user_central_control_set_status(uint8_t kind,uint8_t address,uint8_t net)
{
	memset(payloadbuff,0,sizeof(payloadbuff));
	user_central_control_status.central_control_payloadbuff=payloadbuff;
	user_central_control_status.central_control_address=address;
	user_central_control_status.central_control_kind=kind;
	user_central_control_status.central_control_net_flag=net;
	user_central_control_status.central_control_payloadbuff_len=0;
	printf("address %d kind %d net %d\r\n",address,kind,net);
}

USER_CENTRAL_CONTROL_STATUS_T*  user_central_control_get_status(void)
{
	return &user_central_control_status;
}
